package com.jzit168.common

import android.app.Application
import com.jzit168.library_arouter.ArouterInit
import com.jzit168.library_utils.LogUtil
import com.jzit168.library_utils.MMKVUtil
import com.jzit168.library_utils.NetworkUtil
import kotlin.properties.Delegates

/**
 *@Desc:
 *@Author: Android Developer
 *@Date: 2020/10/14
 *
 **/
class APP : Application() {

    override fun onCreate() {
        super.onCreate()
        instance = this
        NetworkUtil.register(this)
        LogUtil.initLogger()
        MMKVUtil.init(this)
        ArouterInit().init(this, true)
    }

    companion object {
        private var instance: APP by Delegates.notNull()
    }
}